<template>
	<view class="modal">
		<view class="modal-bkg" />
		<view class="modal-pop">
			<view class="close" @tap="close">
				<img src="@/static/icon/icon_16_close_w@2x.png" alt="">
			</view>
			<view class="pop-main no-douyin">
				<view class="title">当前账号不符合条件</view>
				<view class="main">
					<view class="input-desc">
						未绑定抖音帐号
					</view>
				</view>
				<view class="next-btn" @click="bindDouyin">
					立即绑定
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	export default {
		name: 'wx-auth',
		props: {
			authType: {
				type: Array,
				default(){
					return ['authAvatar']
				}
			},
		},
		computed:{
			...mapState(['userinfo'])
		},
		data() {
			return {
				douyinnum: null
			};
		},
		methods: {
			close(){
				console.log('关闭了')
				uni.$emit('pop_close')
			},
			bindDouyin(){
				uni.$emit('phone_confirm')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.modal{
		position: fixed;
		top: 0;
		.modal-bkg{
			position: fixed;
			top: 0;
			background-color: rgba(0,0,0,.5);
			width: 100vw;
			height: 100vh;
		}
		.modal-pop{
			position: absolute;
			top: calc(50vh - 146px);
			left: calc(50vw - 160px);
			width: 320px;
			height: 292px;
			background-image: url('@/static/index/img_modal_card_01@2x.png');
			background-size: 320px 292px;
			.close{
				position: absolute;
				top: -56px;
				right: 0;
				width: 72px;
				height: 56px;
				background: url('@/static/btn/btn_32_ghost_shadow_nor@2x.png');
				background-size: 72px 56px;
				display: flex;
				align-items: center;
				justify-content: center;
				img{
					width: 15px;
					height: 15px;
				}
			}
			.pop-main{
				margin-top: 46px;
				.title{
					width: 64px;
					height: 22px;
					font-size: 16px;
					color: #F82045;
					font-weight: 600;
				}
				.main{
					input{
						width: 248px;
						height: 48px;
						background: #F5F5F5;
						border-radius: 8px;
						padding-left: 10px;
						padding-right: 10px;
						margin-top: 40px;
					}
					.input-desc{
						height: 58px;
						background: #FDF8DF;
						border-radius: 8px;
						padding: 8px 12px;
						font-size: 10px;
						color: #805340;
						margin-top: 12px;
					}
				}
				.next-btn{
					width: 152px;
					height: 56px;
					margin: 22px auto 0;
					text-align: center;
					line-height: 56px;
					background: url('@/static/btn/btn_32_red_152_shadow_nor@2x.png');
					background-size: 152px 56px;
					background-repeat: no-repeat;
					color: #FFFFFF;
					font-weight: 500;
				}
				&.no-douyin{
					text-align: center;
					.title{
						width: 100%;
						height: 20px;
						font-size: 14px;
						color: #666666;
						text-align: center;
						margin-top: 94px;
						font-weight: 500;
					}
					.main{
						width: 150px;
						height: 48px;
						line-height: 44px;
						border-radius: 8px;
						margin: 12px auto 42px;
						font-size: 0;
						.input-desc{
							font-size: 18px;
							color: #F82045;
							text-align: center;
							font-weight: 500;
							background-color: #FFECEE;
						}
					}
				}
			}
			
		}
		
	}
</style>
